﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ywxt.Common;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 财务类型信息表
    /// </summary>
    public class t_sys_finance_type
    {
        #region 数据表名称
        public static readonly string TableName = "t_sys_finance_type";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 类型ID
            /// </summary>
            public static readonly string type_id = @"type_id";

            /// <summary>
            /// 类型名称
            /// </summary>
            public static readonly string type_name = @"type_name";

            /// <summary>
            /// 收支标志：-1：支出、1：收入
            /// </summary>
            public static readonly string type_flag = @"type_flag";

            /// <summary>
            /// 收支描述
            /// </summary>
            public static readonly string type_flag_name = @"type_flag_name";

            /// <summary>
            /// 排序标志
            /// </summary>
            public static readonly string order_flag = @"order_flag";

            /// <summary>
            /// 收支类型描述
            /// </summary>
            public static readonly string type_describe = @"type_describe";

            /// <summary>
            /// 记录是否有效
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 记录创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 类型ID
        /// </summary>
        public virtual string type_id { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public virtual string type_name { get; set; }


        /// <summary>
        /// 收支标志：-1：支出、1：收入
        /// </summary>
        public virtual int type_flag { get; set; }

        /// <summary>
        /// 收支描述
        /// </summary>
        public virtual string type_flag_name { get; set; }

        /// <summary>
        /// 排序标志
        /// </summary>
        public virtual string order_flag { get; set; }

        /// <summary>
        /// 收支类型描述
        /// </summary>
        public virtual string type_describe { get; set; }

        /// <summary>
        /// 记录是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion

        public t_sys_finance_type()
        {
            type_id = Common.NewID();
            is_valid = 1;
            create_date = DateTime.Now;

        }
    }
}
